<script lang="ts" setup>
  const props = defineProps<{
    name: string
    width?: number | string
    height?: number | string
  }>()
  const style = computed(() => {
    return {
      width: `${props.width}px`,
      height: `${props.height}px`
    }
  })
</script>

<template>
  <nuxt-img :style="style" :src="`/${name}.png`"/>
</template>
